<?php
header("content-type:text/html;charset=utf8");
$id=$_GET['id'];
//echo $id;die;
$dbh=new PDO('mysql:host=localhost;dbname=mhsw','root','root');
$sql="delete from news where id='$id'";
$arr=$dbh->exec($sql);
if($arr)
{
    echo 1;
}
else{
    echo 2;
}